package com.molan.molan_music.mapper;

import com.molan.molan_music.dto.UserCreateRequest;
import com.molan.molan_music.dto.UserDto;
import com.molan.molan_music.dto.UserUpdateRequest;
import com.molan.molan_music.entity.User;
import com.molan.molan_music.vo.UserVo;
import org.mapstruct.Mapper;
import org.springframework.stereotype.Component;

@Mapper(componentModel = "spring")
public interface UserMapper {

    UserDto toDto(User user);

    UserVo toVo(UserDto userDto);

    UserVo usertoVo(User user);

    User createEntity(UserCreateRequest userCreateDto);

    User updateEntity(UserUpdateRequest userUpdateRequest);
}
